package com.coolwen.dao;

import com.coolwen.entity.Resource;
import com.coolwen.entity.Role;
import com.coolwen.entity.UserRole;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> listRole();

    UserRole loadUserRole(Integer uid, Integer roleId);

    int deleteUserRoles(Integer uid);

    List<Resource> listRoleResource(Integer roleId);
}